package com.ocm.core.dto;

import com.googlecode.simpleobjectassembler.annotation.EntityDto;

@EntityDto(id = "id")
public class GroupDto {

   private Long id;

   private String username;

   private Boolean isEnabled;

   private String authority;

   public GroupDto() {

   }

   public Long getId() {
      return id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public String getUsername() {
      return username;
   }

   public void setUsername(String username) {
      this.username = username;
   }

   public Boolean getIsEnabled() {
      return isEnabled;
   }

   public void setIsEnabled(Boolean isEnabled) {
      this.isEnabled = isEnabled;
   }

   public String getAuthority() {
      return authority;
   }

   public void setAuthority(String authority) {
      this.authority = authority;
   }

   @Override
   public boolean equals(Object obj) {
      GroupDto compare = (GroupDto) obj;
      if (this.getId().longValue() == compare.getId().longValue()) {
         return true;
      }
      return false;
   }
}
